.TH E1432_SET_CALC_DATA 3 E1432
.SH NAME
.nf
e1432_set_calc_data \- Set the granularity of resampled time data
e1432_get_calc_data \- Get the granularity of resampled time data
.fi
.IX e1432_set_calc_data(3) 3
.IX e1432_get_calc_data(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_calc_data(E1432ID hw, SHORTSIZ16 ID,
                             SHORTSIZ16 data_type)
SHORTSIZ16 e1432_get_calc_data(E1432ID hw, SHORTSIZ16 ID,
                             SHORTSIZ16 *data_type)
.cE
.SH DESCRIPTION
\fIe1432_set_calc_data\fR sets the type of calculated data available from a
measurement.  

\fIe1432_get_calc_data\fR returns the type of calculated data
into the variable pointed to by \fIdata_type\fR.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained
with a call to \fIe1432_create_channel_group\fR, or the ID of a single
channel.

\fIdata_type\fR specifies the type of data calculation.  The available
options:

\fBE1432_DATA_TIME\fR performs no additional calculation on the input data.
Only input time data will be available to the host.

\fBE1432_DATA_FREQ\fR performs a FFT calculation on the input data.  The
size of the FFT is limited to the following blocksizes:

.nf
	Minimum:   64 non-zoom	  32 zoom
	Minimum: 8192 non-zoom	4096 zoom
.fi

and must be a power of two.  Only input time data and its FFT are available
to the host.

\fBE1432_DATA_RESAMP_TIME\fR resamples the input data into the revolution
domain.  This is the method to enable order tracking calculations 
to be done in the E1432 module.  Only input time data and its resampled time
data are available to the host.

\fBE1432_DATA_ORDER\fR performs a FFT calculation on the resampled input data,
producing an order spectrum.   
The size of the FFT is limited to a minimum blocksize of 64 and a maximum 
blocksize of 4096.  Choosing this option also enables the calculation of the
resampled input data upon which it depends.  The input time data, resampled
time data, and order spectrum are all available to the host.  \fBNOTE:\fR
no FFTed input time data is available.

This function only enables what types of data are calculated and
available to the host, not what is actually sent to the host.  The
data sent to the host is enabled or disabled by
\fIe1432_set_enable\fR.  The default condition is that all data
available is sent to the host.  If that is not what is wanted,
\fIe1432_set_enable\fR must be used to prevent some of the data from
being sent to the host.  For example, if only input time data and
order data are wanted in the host and not resampled time data, use
\fIe1432_set_calc_data\fR to set the calculated data to
\fBE1432_DATA_ORDER\fR and use \fIe1432_set_enable\fR to enable input
time data, disable resampled time data and enable order data.

\fBNOTE:\fR See the function \fIe1432_read_float32_data\fR for a discussion 
of the relationship of blocksize of the FFT data and averaging modes.

.SH "RESET VALUE"
After a reset, \fIdata\fR is set to \fBE1432_DATA_TIME\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_max_order, e1432_set_delta_order, e1432_set_enable. 
.ad
